package com.coocaa.ops.api.base.third.media.source.feign;

import com.coocaa.ops.api.base.third.FeignServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @author bijiahao
 * @date : 2019/7/1.
 * @description
 *     获取媒资策略 feign client
 *
 */
@FeignClient(name = FeignServiceNameConstants.MEDIA_SOURCE_SERVICE)
@RequestMapping("/v2")
public interface GetPolicyFeignClient {
    /**
     * 获取媒资策略
     * @param headers
     * @return
     */
    @RequestMapping(value = "/getPolicy")
    String getPolicy(@RequestHeader final Map<String, String> headers);

}
